﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Secure/Secure.Master" AutoEventWireup="true" CodeBehind="Edit User.aspx.cs" Inherits="Site.Secure.Edit_User" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <h1>Edit User</h1>
<a>This page allows you to edit the details of users already registered to use this website</a>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3>Edit User Details</h3>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:csMain %>" 
        SelectCommand="SELECT * FROM Users WHERE userHidden='False'" 
        ProviderName="System.Data.SqlClient">
    </asp:SqlDataSource>

<table>
<tr>
    <td><a>Username:</a></td>
    <td><asp:DropDownList Width="190px" ID="comboUser" runat="server" 
    DataSourceID="SqlDataSource1" DataTextField="userID" DataValueField="userID" 
    onselectedindexchanged="DropDownList1_SelectedIndexChanged">
    </asp:DropDownList></td>
</tr>
<tr>
    <td><a>Password:</a></td>
    <td><asp:TextBox ID="edtPass" Width="190px" runat="server"></asp:TextBox></td>
</tr>
<tr>
    <td><a>Email:</a></td>
    <td><asp:TextBox ID="edtEmail" Width="190px" runat="server"></asp:TextBox></td>
</tr>
<tr>
    <td></td>
    <td align="right"><asp:Button ID="Button1" runat="server" Text="Update" 
            onclick="Button1_Click" /></td>
</tr>
</table>
<asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
</asp:Content>
